﻿using IterationLife.Mobile.CampusFootball.Student.ApiGateway;
using Microsoft.Owin;
using Microsoft.Owin.Security.OAuth;
using Owin;

[assembly: OwinStartup( typeof( Startup ) )]
namespace IterationLife.Mobile.CampusFootball.Student.ApiGateway {
    /// <summary>
    /// 启动配置
    /// </summary>
    public class Startup {
        /// <summary>
        /// 配置
        /// </summary>
        public void Configuration( IAppBuilder app ) {
            ////使用cookie存储安全信息
            //app.UseCookieAuthentication(new CookieAuthenticationOptions
            //{
            //    AuthenticationType = DefaultAuthenticationTypes.ApplicationCookie,
            //    LoginPath = new PathString("/Authentication/Login")
            //});
            ////配置SignalR
            //app.MapSignalR();

            app.UseOAuthBearerTokens(new OAuthAuthorizationServerOptions());
        }
    }
}
